<p>轻松点 (开始正式的了) </p> <a herf="ctf/2.php">/ctf/2.php</a>
<code>
	function GetIP(){
	if(!empty($_SERVER["HTTP_CLIENT_IP"]))
		$cip = $_SERVER["HTTP_CLIENT_IP"];
	else if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
		$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
	else if(!empty($_SERVER["REMOTE_ADDR"]))
		$cip = $_SERVER["REMOTE_ADDR"];
	else
		$cip = "0.0.0.0";
	return $cip;
	}
	
	$GetIPs = GetIP();
	if ($GetIPs=="1.1.1.1"){
	echo "flag{XXXX}";
	}
	else{
	echo "错误！你的IP不在访问列表之内！(1.1.1.1)";
	}	
	</code>